<template>
  <div class="param-info">
      <table class="set-table" v-for="(item,index) in paramInfo.sizes" :key="index">
         <tr v-for="tr in item">
            <td v-for="td in tr">{{td}}</td>
         </tr>
      </table>
     <table class="rule-table" style="word-wrap:break-word; word-break:break-all;" >
          <tr v-for="(item,index) in paramInfo.infos" :key="index">
             <td>{{item.key}}</td>
             <td>{{item.value}}</td>
          </tr>
     </table>
  </div>
</template>

<script>
  export default {
    name: "DeatilParamInfo",
    props:{
      paramInfo:{
        type:Object
      }
    },

  }
</script>

<style scoped>
.set-table{
  border-collapse: collapse;
  border-spacing: 0;
  width: 98%;
 margin: 0 auto;

}
  .set-table tr{
    width: 100%;
    display: flex;
    height: 30px;
    border-bottom: 3px solid #cecdcd;
  }
  .set-table td{
    flex: 1;
    text-align: center;
    line-height: 30px;
  }
.rule-table{

  border-collapse: collapse;
  border-spacing: 0;
  width: 98%;
  margin: 20px auto;
}
.rule-table tr{
  display: flex;
  border-bottom: 3px solid #cecdcd;
  line-height: 30px;
}
.rule-table  td:nth-of-type(1){
    flex: 1;
    text-align: center;
  }
.rule-table  td:nth-of-type(2){
  color: var(--color-high-text);
   flex: 2;
  text-align: left;
}

</style>
